package com.srcptit.trainning.toannt.btvn3;

public class bai_6 {
public static void main(String[]args){
	System.out.println("chuong trinh in ra so thuan nghich: ");
	
	for(int i=100000;i<=999999;i++)
	{
		if(test(i)==true)
			System.out.println(i);
	}}
//chuong trinh kiem tra so thuan nghich
static boolean test(int n){
	int k=0,t=n,x=0;
	while(n!=0){
		k=n%10;
		x=x*10+k;
		n=n/10;
	}
	if(x==t)return true;
	else return false;
	
}
}
